<h2 class="paketi">Kolekcije</h2>

<div id = "packagesLeft">
<ul id = "contentsList">
	<li id = "dodajNovu"><a  class="listItem" ng-click="showForm()">Dodaj novu</a></li>
	<li ng-repeat="collection in collections"><a class="listItem" href="#/collections/{{collection.id}}" >{{collection.name}}</a></li>
</ul>
</div>

<div id = "packagesRight">
	Collection Name:<input type="text" ng-model="collectionName" /><br/>
	Description:<br/><textarea cols="50" rows="8" ng-model="collectionDescription"></textarea><br/>
	Tags: <input id="tags" type="text" class="tags" ng-value="allTags" /><br/>
	<button ng-click="searchTags()">Search Tags</button>
	<button ng-click="addCollection()">Add Collection</button>
	<ul>
		<li ng-repeat="content in contents">
			<input type="checkbox" ng-model="selected[content.id]"/>{{content.ime}}&nbsp;{{content.path}}
		</li>
	</ul>
</div>

<script type="text/javascript">
$('#tags').tagsInput({
	width:'auto',
	autocomplete_url:'modules/tags/all_tags.php'
});
</script>